﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using yt_.netcore3._1_webapi_les_jackson.Dtos;
using yt_.netcore3._1_webapi_les_jackson.Models;

namespace yt_.netcore3._1_webapi_les_jackson.Profiles
{
    public class CommandsProfile:Profile
    {
        public CommandsProfile()
        {

            //Source -> Target
            CreateMap<Command, CommandReadDto>();
            CreateMap<CommandCreateDto, Command>();
            CreateMap<CommandUpdateDto,Command>();
            CreateMap<Command, CommandUpdateDto>();
        }
    }
}
